package com.yzs.exam.repository;

import com.yzs.exam.entity.Chapter;
import com.yzs.exam.entity.Subject;
import com.yzs.exam.entity.User;
import com.yzs.exam.viewmodel.admin.education.ChapterPageRequestVM;
import com.yzs.exam.viewmodel.admin.education.SubjectPageRequestVM;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yzs
 * @create 2021-04-22 10:11
 */
@Mapper
@Repository
public interface ChapterMapper extends BaseMapper<Chapter> {
    int deleteByPrimaryKey(Integer id);

    int insert(Chapter record);

    int insertSelective(Chapter record);

    Chapter selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Chapter record);

    int updateByPrimaryKey(Chapter record);

    List<Chapter> allChapter();

    List<Chapter> page(ChapterPageRequestVM requestVM);

    List<Chapter> getChaptersByLevel(Integer level);

}
